#!/bin/bash 
/etc/init.d/rabbitmq-server start

/usr/sbin/rabbitmqctl add_user test test 
/usr/sbin/rabbitmqctl set_permissions -p "/" test ".*" ".*" ".*" 
/usr/sbin/rabbitmqctl set_user_tags test administrator 
/bin/bash
